package com.heima.model.wemedia.dtos;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Description:
 * @Version: V1.0
 */
@Data
public class WmUserDto {

    @NotNull(message = "用户名不能为空")   // name 不能为空
    @NotBlank(message = "用户名不能为空")
    private String name;

    @NotNull(message = "密码不能为空")
    @Length(min = 1,max = 20, message = "密码长度在1-20个字符")
    private String password;

}
